package com.hudson.plugin;

import javax.persistence.*;

import static javax.persistence.GenerationType.IDENTITY;

/**
 * Ccheckresult entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "ccheckresult", catalog = "reportdb")
public class Ccheckresult implements java.io.Serializable {

    // Fields

    private Integer id;
    private Integer buildId;
    private String score;
    private String summary;
    private String resultReason;
    private String details;
    private String displayName;

    // Constructors

    /**
     * default constructor
     */
    public Ccheckresult() {
    }

    /**
     * full constructor
     */
    public Ccheckresult(Integer buildId, String score, String summary,
                        String resultReason, String details, String displayName) {
        this.buildId = buildId;
        this.score = score;
        this.summary = summary;
        this.resultReason = resultReason;
        this.details = details;
        this.displayName = displayName;
    }

    // Property accessors
    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "id", unique = true, nullable = false)
    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Column(name = "buildId")
    public Integer getBuildId() {
        return this.buildId;
    }

    public void setBuildId(Integer buildId) {
        this.buildId = buildId;
    }

    @Column(name = "score", length = 32)
    public String getScore() {
        return this.score;
    }

    public void setScore(String score) {
        this.score = score;
    }

    @Column(name = "summary", length = 128)
    public String getSummary() {
        return this.summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    @Column(name = "resultReason", length = 128)
    public String getResultReason() {
        return this.resultReason;
    }

    public void setResultReason(String resultReason) {
        this.resultReason = resultReason;
    }

    @Column(name = "details", length = 128)
    public String getDetails() {
        return this.details;
    }

    public void setDetails(String details) {
        this.details = details;
    }

    @Column(name = "displayName", length = 64)
    public String getDisplayName() {
        return this.displayName;
    }

    public void setDisplayName(String displayName) {
        this.displayName = displayName;
    }

}